home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 38 / giftif.zip / EXPANDER.H < prev    next >
Text File  |  1989-11-22  |  947b  |  28 lines

  1. /*----------------------------------------------------------------------*/
  2. /* Copyright (c) 1987                            */
  3. /* by CompuServe Inc., Columbus, Ohio.  All Rights Reserved        */
  4. /* EXPANDER.H can be copied and distributed freely for any        */
  5. /* non-commercial purposes. EXPANDER.H can only be incorporated        */
  6. /* into commercial software with the permission of CompuServe Inc.    */
  7. /*----------------------------------------------------------------------*/
  8.  
  9. short Expand_Data(
  10.           short (*get_byte_routine)(void),
  11.           short (*put_byte_routine)(short)
  12.          );
  13. /*
  14.  * Function:
  15.  *    Decompress a LZW compressed data stream.
  16.  *
  17.  * Inputs:
  18.  *    get_byte_routine - address of the caller's "get_byte" routine.
  19.  *    put_byte_routine - address of the caller's "put_byte" routine.
  20.  *
  21.  * Returns:
  22.  *    0    OK
  23.  *    -1    expected end-of-file
  24.  *    -2    cannot allocate memory
  25.  *    -3    bad "min_code_size"
  26.  *    < -3    error status from the get_byte or put_byte routine
  27.  */
  28.